package com.hisoft.exception;

public class XpathNotFoundException extends RuntimeException {

	private static final long serialVersionUID = 454211223122342341L;
	// 文件路径
	String filePath = "";
	// xptah的值
	String xpath = "";

	/**
	 * 构造方法
	 * 
	 * @param operateTag
	 *            (This is exception position)
	 * @param xpath
	 * @param filePath
	 */
	public XpathNotFoundException(String xpath, String filePath) {
		this.xpath = xpath;
		this.filePath = filePath;
	}

	/**
	 * 获得出错信息
	 */
	@Override
	public String getMessage() {
		return xpath + " in file " + filePath + " is not found!";
	}
}
